package com.t168.appinfo.dao.reception.appinfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.t168.appinfo.entity.AppInfo;

public interface AppInfoMapper {

	public List<AppInfo> getAppInfo(
			@Param("level1")String level1,
			@Param("level2")String level2,
			@Param("level3")String level3,
			@Param("softwareName")String softwareName,
			@Param("flatformId")String flatformId,
			@Param("status")String status,
			@Param("pageIndex") Integer pageIndex,
			@Param("pageCount") Integer pageCount);
	
	
	public int  getAppInfoCount(
			@Param("level1")String level1,
			@Param("level2")String level2,
			@Param("level3")String level3,
			@Param("softwareName")String softwareName,
			@Param("flatformId")String flatformId,
			@Param("status")String status);
	
	
	public int addAppInfo(AppInfo appInfo);
	
	public int apkExist(String apkName);
	
	public AppInfo getAppInfoViewById(int id);
	
	
	public int modifyAppInfoSave(AppInfo appInfo);
	
	public int modifyAppVersionId(@Param("id") int id,@Param("versionId")int versionId);
	
	public AppInfo historyVersion(int appId);
	

	public int delAppInfoById(int appId);
	
	
	public int modifyAppInfoStatus(@Param("id")int id,@Param("saleSwitch")String saleSwitch);
	
	
}
